//package com.demo.javaDemo.log;
//import java.util.Objects;
//import javax.validation.constraints.NotNull;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.slf4j.Marker;
//import org.slf4j.MarkerFactory;
//public class LogDemo {
//	private static final Logger LOGGER= LoggerFactory.getLogger(LogDemo.class);
//	public static void main(String[] args) {
//		LOGGER.debug(MarkerFactory.getMarker("FILE"),"myname :{}", "aaa");
//		LOGGER.info("myname:{}", "bbb");
//		LOGGER.error("error",new Exception("123"));
//		System.out.println(format("myname:{}", 123));
//	}
//	public static String format(@NotNull String format,@NotNull Object arg) {
//		return format(format,new Object[] {arg});
//	}
//	public static String format(@NotNull String format,@NotNull Object ... args) {
//		if(args !=null) {
//			for(Object arg:args) {
//				format=format.replaceFirst("\\{\\}", Objects.toString(arg));
//			}
//		}
//		return format;
//	}
//	
//}
